package com.yan.service.impl;

import com.yan.mapper.UserMapper;
import com.yan.po.User;
import com.yan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public Integer addUser(User user) throws Exception {
        return null;
    }

    @Override
    public User getUserById(Integer id) throws Exception {
        return userMapper.getUserById(id);
    }

    @Override
    public Integer updateUser(User user) throws Exception {
        return null;
    }

    @Override
    public Integer deleteUser(Integer id) throws Exception {
        return null;
    }
}
